<?php
/**
 * +----------------------------------------------------------------------
 * | summer framework
 * +----------------------------------------------------------------------
 * | Copyright (c) 2020 https://github.com/suframe/think-admin All rights reserved.
 * +----------------------------------------------------------------------
 * | Author: summer <806115620@qq.com>  2020/3/26 16:03
 * +----------------------------------------------------------------------
 */
declare (strict_types = 1);

namespace app\mall;

class Events{
    //订单相关
    const ORDER_CREATE = 'OrderCreate'; //创建订单
    const ORDER_PAY = 'OrderPay'; //支付订单
    const ORDER_SEND = 'OrderSend'; //订单发货
    const ORDER_CONFIRM = 'OrderConfirm'; //确认订单
    const ORDER_CANCEL = 'OrderCancel'; //取消订单
    const ORDER_REFUND_APPLY = 'OrderRefundApply'; //订单申请退款
    const ORDER_REFUND_SUCCESS = 'OrderRefundSuccess'; //订单申请退款成功
    const ORDER_REFUND_FAIL = 'OrderRefundFail'; //订单申请退款失败
    const ORDER_COMPLETE = 'OrderComplete'; //完成订单
    const ORDER_EVALUATE = 'OrderEvaluate'; //评价订单

    //用户操作相关
    const USER_ADD_CAR = 'UserAddCar'; //增加购物车
    const USER_VISIT = 'UserVisit'; //用户访问
    const USER_REGISTER = 'UserRegister'; //用户注册
    const USER_LOGIN = 'UserLogin'; //用户注册
    const USER_LEVEL_CHAHGE = 'UserLevelChange'; //用户等级变动
    const USER_POINT_CHAHGE = 'UserPointChange'; //用户积分变动
    const USER_COMMENT_GOODS = 'UserCommentGoods'; //用户评价商品

    //商品相关
    const GOODS_DISPATCH_STORE = 'GoodsDispatchStore'; //分配商品到门店
    const GOODS_RECOVERY_STORE = 'GoodsRecoveryStore'; //回收商品到门店

    //库存
    const GOODS_STOCK_INC = 'GoodsStockInc'; //库存增加
    const GOODS_STOCK_DESC = 'GoodsStockDesc'; //库存减少

    //门店相关
    const STORE_UP = 'StoreUp';//门店营业
    const STORE_DOWN = 'StoreDown';//门店暂停营业
}